﻿using System;
using System.Collections.Generic;
using System.Text;
using AppMain;

namespace BehaviorTree
{
    public class BaseNode : INode
    {
        protected INode[] childs;
        int len = 0;
        //public INode[] Childs => childs;

        public virtual Node_Status tick(float frameTime)
        {
            return Node_Status.Success;
        }

        public void addNode(INode node)
        {
            childs[len] = node;
            len++;
        }

        public void initNodesLength(int length)
        {
            len = 0;
            childs = new INode[length];
        }
    }

}
